<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>MiXiM: D:/Projects/MiXiM/extsrc/mixim/src/modules/analogueModel/BreakpointPathlossModel.h Source File</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
</script>


</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">MiXiM
   &#160;<span id="projectnumber">2.3</span>
   </div>
   
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Generated by Doxygen 1.7.5.1 -->
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
      <li><a href="modules.html"><span>Modules</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li><a href="dirs.html"><span>Directories</span></a></li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
    </ul>
  </div>
</div>
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
  initNavTree('a00395.html','');
</script>
<div id="doc-content">
<div class="header">
  <div class="headertitle">
<div class="title">BreakpointPathlossModel.h</div>  </div>
</div>
<div class="contents">
<div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="preprocessor">#ifndef BREAKPOINTPATHLOSSMODEL_H_</span>
<a name="l00002"></a>00002 <span class="preprocessor"></span><span class="preprocessor">#define BREAKPOINTPATHLOSSMODEL_H_</span>
<a name="l00003"></a>00003 <span class="preprocessor"></span>
<a name="l00004"></a>00004 <span class="preprocessor">#include &lt;cstdlib&gt;</span>
<a name="l00005"></a>00005 
<a name="l00006"></a>00006 <span class="preprocessor">#include &quot;MiXiMDefs.h&quot;</span>
<a name="l00007"></a>00007 <span class="preprocessor">#include &quot;AnalogueModel.h&quot;</span>
<a name="l00008"></a>00008 
<a name="l00015"></a><a class="code" href="a00039.html">00015</a> <span class="keyword">class </span>MIXIM_API <a class="code" href="a00039.html" title="Basic implementation of a BreakpointPathlossModel. This class can be used to implement the ieee802154...">BreakpointPathlossModel</a> : <span class="keyword">public</span> <a class="code" href="a00009.html" title="Interface for the analogue models of the physical layer.">AnalogueModel</a>
<a name="l00016"></a>00016 {
<a name="l00017"></a>00017 <span class="keyword">protected</span>:
<a name="l00018"></a>00018 
<a name="l00019"></a>00019 <span class="comment">//  /** @brief Model to use for distances below breakpoint distance */</span>
<a name="l00020"></a>00020 <span class="comment">//  SimplePathlossModel closeRangeModel;</span>
<a name="l00021"></a>00021 <span class="comment">//  /** @brief Model to use for distances larger than the breakpoint distance */</span>
<a name="l00022"></a>00022 <span class="comment">//  SimplePathlossModel farRangeModel;</span>
<a name="l00023"></a>00023 
<a name="l00025"></a><a class="code" href="a00039.html#aaf5084c5a5dc83b37a468e5813a8191d">00025</a>     <span class="keywordtype">double</span> <a class="code" href="a00039.html#aaf5084c5a5dc83b37a468e5813a8191d" title="Model to use for distances below breakpoint distance.">PL01</a>, PL02;
<a name="l00027"></a><a class="code" href="a00039.html#abaedae8f705d49e1c7fc547eede38c62">00027</a>     <span class="keywordtype">double</span> <a class="code" href="a00039.html#abaedae8f705d49e1c7fc547eede38c62" title="initial path loss">PL01_real</a>, PL02_real;
<a name="l00028"></a>00028 
<a name="l00030"></a><a class="code" href="a00039.html#a9308bf633a9048ae42b7b004d718606f">00030</a>     <span class="keywordtype">double</span> <a class="code" href="a00039.html#a9308bf633a9048ae42b7b004d718606f" title="pathloss exponents">alpha1</a>, alpha2;
<a name="l00031"></a>00031 
<a name="l00033"></a><a class="code" href="a00039.html#a8f5df99a4fac21e39f985b8af0d9412c">00033</a>     <span class="keywordtype">double</span> <a class="code" href="a00039.html#a8f5df99a4fac21e39f985b8af0d9412c" title="Breakpoint distance squared.">breakpointDistance</a>;
<a name="l00034"></a>00034 
<a name="l00036"></a><a class="code" href="a00039.html#a15f631e677b586706c16f910187c5b69">00036</a>     <span class="keywordtype">double</span> <a class="code" href="a00039.html#a15f631e677b586706c16f910187c5b69" title="Carrier frequency in Hz.">carrierFrequency</a>;
<a name="l00037"></a>00037 
<a name="l00039"></a><a class="code" href="a00039.html#ae4ce233223157fbad4767ee989d0328c">00039</a>     <span class="keywordtype">bool</span> <a class="code" href="a00039.html#ae4ce233223157fbad4767ee989d0328c" title="Information needed about the playground.">useTorus</a>;
<a name="l00040"></a>00040 
<a name="l00042"></a><a class="code" href="a00039.html#ab46183c9afd261db6972087e706dd736">00042</a>     <a class="code" href="a00065.html" title="Class for storing 3D coordinates.">Coord</a> <a class="code" href="a00039.html#ab46183c9afd261db6972087e706dd736" title="The size of the playground.">playgroundSize</a>;
<a name="l00043"></a>00043 
<a name="l00045"></a><a class="code" href="a00039.html#aa9f8dbeb8e7e0f3a9200652d1f81a88c">00045</a>     <span class="keywordtype">bool</span> <a class="code" href="a00039.html#aa9f8dbeb8e7e0f3a9200652d1f81a88c" title="Whether debug messages should be displayed.">debug</a>;
<a name="l00046"></a>00046 
<a name="l00048"></a><a class="code" href="a00039.html#a0c6ce678120579025519343c8a0974c3">00048</a>     cOutVector <a class="code" href="a00039.html#a0c6ce678120579025519343c8a0974c3">pathlosses</a>;
<a name="l00049"></a>00049 
<a name="l00050"></a>00050 <span class="keyword">public</span>:
<a name="l00065"></a><a class="code" href="a00039.html#a75f814ce2e0a9c22764a6821848c3153">00065</a>   <a class="code" href="a00039.html" title="Basic implementation of a BreakpointPathlossModel. This class can be used to implement the ieee802154...">BreakpointPathlossModel</a>()
<a name="l00066"></a>00066     : <a class="code" href="a00009.html" title="Interface for the analogue models of the physical layer.">AnalogueModel</a>()
<a name="l00067"></a>00067     , PL01(0)
<a name="l00068"></a>00068     , PL02(0)
<a name="l00069"></a>00069     , PL01_real(0)
<a name="l00070"></a>00070     , PL02_real(0)
<a name="l00071"></a>00071     , alpha1(alpha1)
<a name="l00072"></a>00072     , alpha2(alpha2)
<a name="l00073"></a>00073     , breakpointDistance(breakpointDistance)
<a name="l00074"></a>00074     , carrierFrequency(carrierFrequency)
<a name="l00075"></a>00075     , useTorus(useTorus)
<a name="l00076"></a>00076     , playgroundSize(playgroundSize)
<a name="l00077"></a>00077     , debug(debug)
<a name="l00078"></a>00078     , pathlosses()
<a name="l00079"></a>00079   {
<a name="l00080"></a>00080     pathlosses.setName(<span class="stringliteral">&quot;pathlosses&quot;</span>);
<a name="l00081"></a>00081   }
<a name="l00082"></a>00082 
<a name="l00091"></a>00091   <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="a00009.html#a9c52493cdf1baa4110a83869e8bc13c5" title="Initialize the analog model from XML map data.">initFromMap</a>(<span class="keyword">const</span> ParameterMap&amp;);
<a name="l00092"></a>00092 
<a name="l00097"></a>00097   <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="a00009.html#a3242bc36a68dab53551d4ab1f1dab010" title="Has to be overriden by every implementation.">filterSignal</a>(airframe_ptr_t, <span class="keyword">const</span> <a class="code" href="a00065.html" title="Class for storing 3D coordinates.">Coord</a>&amp;, <span class="keyword">const</span> <a class="code" href="a00065.html" title="Class for storing 3D coordinates.">Coord</a>&amp;);
<a name="l00098"></a>00098 
<a name="l00099"></a>00099   <span class="keyword">virtual</span> <span class="keywordtype">bool</span> isActiveAtDestination() { <span class="keywordflow">return</span> <span class="keyword">true</span>; }
<a name="l00100"></a>00100 
<a name="l00101"></a>00101   <span class="keyword">virtual</span> <span class="keywordtype">bool</span> isActiveAtOrigin() { <span class="keywordflow">return</span> <span class="keyword">false</span>; }
<a name="l00102"></a>00102 
<a name="l00103"></a>00103 };
<a name="l00104"></a>00104 
<a name="l00105"></a>00105 <span class="preprocessor">#endif </span><span class="comment">/*BREAKPOINTPATHLOSSMODEL_H_*/</span>
</pre></div></div>
</div>
  <div id="nav-path" class="navpath">
    <ul>
      <li class="navelem"><b>BreakpointPathlossModel.h</b>      </li>

    <li class="footer">Generated on Tue Mar 5 2013 21:26:30 for MiXiM by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.5.1 </li>
   </ul>
 </div>


</body>
</html>
